$(function () {
    
    //旅行社列表 下拉框初始化
    $(".scenic").M_select({
        // 手动添加下拉款图片（以html页面为起始位置写路径）
        "Img": "./assets/plugin/M_select/up6.png",
        "Img2": "./assets/plugin/M_select/down6.png",
        "radius": "4px",
        // "Title": "选择景区",
        "inputName": "selected_value",
        // 默认选中的值（参数值写需要选中的select的value值）
        "selected": "0",
        Succee: function () {
            var site = $('#select-lxs').val()
            console.log(site)
            if (site == 0) {
                window.location.href = "./chanye_lxs.html";
            }
            if (site == 1) {
                window.location.href = "./chanye_lxs_yhgj.html";
            }
        }
    });
    $('.scroll-box').myScroll({
        speed: 60, //数值越大，速度越慢
        rowHeight: 60//li的高度
    });

   // 日期选择
   $('.date-select-list .date-tab>a').click(function(){
    $(this).addClass('active').siblings('a').removeClass('active')
    if($(this).text()=='日'){
        $(this).parent().siblings('.select-date-box').find('span').text('日期')
        $('#selectDate').removeClass('hd').siblings('input').addClass('hd')
    }
    if($(this).text()=='月'){
        $(this).parent().siblings('.select-date-box').find('span').text('月份')
        $('#selectMonth').removeClass('hd').siblings('input').addClass('hd')
    }
    if($(this).text()=='年'){
        $(this).parent().siblings('.select-date-box').find('span').text('年份')
        $('#selectYear').removeClass('hd').siblings('input').addClass('hd')
    }
})
 //选择日
 laydate.render({
    elem: '#selectDate', //指定元素
    theme: '#37B866',
    range: true,
    trigger: 'click',
    min: -10,
    max: 0
});
 //选择月
 laydate.render({
    elem: '#selectMonth', //指定元素
    theme: '#37B866',
    type: 'month',
     range: true,
     trigger: 'click',
});
 //选择年
 laydate.render({
    elem: '#selectYear', //指定元素
    theme: '#37B866',
    type: 'year',
     range: true,
     trigger: 'click',
});
    //数字
    $('.numberStyle').leoTextAnimate({
        delay: 1000, //延时出现时间
        autorun: true, //是否自动运行
        fixed: [',', ':', '.'], //
        start: '0'
    });




    //世界地图

    function myChart1_1() {
        var myChart = echarts.init(document.getElementById('tourism_1_1'));
        var data = [{
                name: '2256',
                value: 2256
            },
            {
                name: '7254',
                value: 7254
            }
        ]
        var geoCoordMap = {
            '2256': [-95.712891, 37.09024],
            '7254': [138.252924, 36.204824],
        }

        function convertData(data) {
            var res = [];
            for (var i = 0; i < data.length; i++) {
                var geoCoord = geoCoordMap[data[i].name];
                if (geoCoord) {
                    res.push({
                        name: data[i].name,
                        value: geoCoord.concat(data[i].value)
                    });
                }
            }
            return res;
        }
        option = {

            geo: {
                map: 'world',
                roam: 'move',
                // scaleLimit:{
                //   max:'1.2',
                //   min:'0.7'
                // },
                label: {
                    normal: {
                        show: false,
                        textStyle: {
                            color: 'rgba(0,0,0,0.6)',
                        }
                    }
                },
                itemStyle: {
                    normal: {
                        borderColor: '#fff'
                    },
                    emphasis: {
                        areaColor: null,
                        shadowOffsetX: 0,
                        shadowOffsetY: 0,
                        shadowBlur: 20,
                        borderWidth: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            },
            "series": [{
                    type: 'scatter',
                    coordinateSystem: 'geo',
                    data: convertData(data),
                    symbolSize: 20,
                    symbol: 'path://M35.025,17.608c-5.209-4.786-11.483-2.301-15.303-4.281v-1.482c0-0.41-0.333-0.743-0.743-0.743c-0.411,0-0.743,0.333-0.743,0.743v24.682c-1.855,0.104-3.261,0.59-3.261,1.175c0,0.661,1.793,1.197,4.005,1.197c2.21,0,4.003-0.536,4.003-1.197c0-0.585-1.405-1.071-3.261-1.175V26.151C24.575,24.573,28.408,17.166,35.025,17.608z',
                    symbolRotate: 0,
                    // symbolOffset: ['50%', '-100%'],
                    label: {
                        normal: {
                            formatter: '{b}',
                            position: 'top',
                            show: false,
                            textStyle: {
                                color: '#000000',
                                fontSize: 16
                            }

                        },
                        emphasis: {
                            show: false
                        }
                    },
                    itemStyle: {
                        normal: {
                            color: '#F06C00' //图标颜色
                        }
                    }
                },
                {
                    "data": [{
                            name: 'United States',
                            value: 2256
                        },
                        {
                            'name': 'Japan',
                            'value': 7254
                        },
                    ],
                    // roam: true,
                    "itemStyle": {
                        "emphasis": {
                            "areaColor": "#14C6CA"
                        },
                        "normal": {
                            "areaColor": "#28D8E8"
                        }
                    },
                    "label": {
                        "normal": {
                            "show": false,
                            color: "#FFF"
                        }
                    },
                    "mapType": "china",
                    "map": 'world',
                    "type": "map",
                    // zoom: 1.2,
                    tooltip: {
                        show: true
                    },

                },

            ],
        };
        myChart.setOption(option);
    }
    // 省内游组团
    function myChart1() {
        // 省内游组团 数据
        let Data1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        let Data2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        var myChart = echarts.init(document.getElementById('lxs_1'));
        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['游客量', '团队个数'],
                align: 'right',
                right: 10,
                textStyle: {
                    color: "#fff"
                },
                itemWidth: 10,
                itemHeight: 10,
                itemGap: 35
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [{
                type: 'category',
                data: ['1月',
                    '2月',
                    '3月',
                    '4月',
                    '5月',
                    '6月',
                    '7月',
                    '8月',
                    '9月',
                    '10月',
                    '11月',
                    '12月'
                ],
                axisLine: {
                    show: true,
                    lineStyle: {
                        color: "#063374",
                        width: 1,
                        type: "solid"
                    }
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: "#00c7ff",
                        fontSize: 11,
                        rotate: 45
                    }
                },
            }],
            yAxis: [{
                name: '(万人)',
                type: 'value',
                min: 0,
                max: 50,
                splitNumber: 7,
                axisLabel: {
                    formatter: '{value}'
                },
                axisTick: {
                    show: false,
                },
                axisLine: {
                    show: false,
                    lineStyle: {
                        color: "#00c7ff",
                        width: 1,
                        type: "solid"
                    },
                },
                splitLine: {
                    show: false,
                    lineStyle: {
                        color: "#063374",
                    }
                }
            }],
            series: [{
                name: '游客量',
                type: 'bar',
                data: Data1,
                barWidth: 8, //柱子宽度
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(0,228,255,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(0,228,255,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }, {
                name: '团队个数',
                type: 'bar',
                data: Data2,
                barWidth: 8,
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(83,252,179,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(83,252,179,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }]
        };
        myChart.setOption(option);
    }
    // 国内游组团
    function myChart2() {
        // 省内游组团 数据
        let Data1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        let Data2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        var myChart = echarts.init(document.getElementById('lxs_2'));
        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['游客量', '团队个数'],
                align: 'right',
                right: 10,
                textStyle: {
                    color: "#fff"
                },
                itemWidth: 10,
                itemHeight: 10,
                itemGap: 35
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [{
                type: 'category',
                data: ['1月',
                    '2月',
                    '3月',
                    '4月',
                    '5月',
                    '6月',
                    '7月',
                    '8月',
                    '9月',
                    '10月',
                    '11月',
                    '12月'
                ],
                axisLine: {
                    show: true,
                    lineStyle: {
                        color: "#063374",
                        width: 1,
                        type: "solid"
                    }
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: "#00c7ff",
                        fontSize: 11,
                        rotate: 45
                    }
                },
            }],
            yAxis: [{
                name: '(万人)',
                type: 'value',
                min: 0,
                max: 50,
                splitNumber: 7,
                axisLabel: {
                    formatter: '{value}'
                },
                axisTick: {
                    show: false,
                },
                axisLine: {
                    show: false,
                    lineStyle: {
                        color: "#00c7ff",
                        width: 1,
                        type: "solid"
                    },
                },
                splitLine: {
                    show: false,
                    lineStyle: {
                        color: "#063374",
                    }
                }
            }],
            series: [{
                name: '游客量',
                type: 'bar',
                data: Data1,
                barWidth: 8, //柱子宽度
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(0,228,255,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(0,228,255,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }, {
                name: '团队个数',
                type: 'bar',
                data: Data2,
                barWidth: 8,
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(83,252,179,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(83,252,179,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }]
        };
        myChart.setOption(option);
    }
    // 出境游组团
    function myChart3() {
        // 省内游组团 数据
        let Data1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        let Data2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        var myChart = echarts.init(document.getElementById('lxs_3'));
        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['游客量', '团队个数'],
                align: 'right',
                right: 10,
                textStyle: {
                    color: "#fff"
                },
                itemWidth: 10,
                itemHeight: 10,
                itemGap: 35
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [{
                type: 'category',
                data: ['1月',
                    '2月',
                    '3月',
                    '4月',
                    '5月',
                    '6月',
                    '7月',
                    '8月',
                    '9月',
                    '10月',
                    '11月',
                    '12月'
                ],
                axisLine: {
                    show: true,
                    lineStyle: {
                        color: "#063374",
                        width: 1,
                        type: "solid"
                    }
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: "#00c7ff",
                        fontSize: 11,
                        rotate: 45
                    }
                },
            }],
            yAxis: [{
                name: '(人次)',
                type: 'value',
                min: 0,
                max: 50,
                splitNumber: 7,
                axisLabel: {
                    formatter: '{value}'
                },
                axisTick: {
                    show: false,
                },
                axisLine: {
                    show: false,
                    lineStyle: {
                        color: "#00c7ff",
                        width: 1,
                        type: "solid"
                    },
                },
                splitLine: {
                    show: false,
                    lineStyle: {
                        color: "#063374",
                    }
                }
            }],
            series: [{
                name: '游客量',
                type: 'bar',
                data: Data1,
                barWidth: 8, //柱子宽度
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(0,228,255,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(0,228,255,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }, {
                name: '团队个数',
                type: 'bar',
                data: Data2,
                barWidth: 8,
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: 'rgba(83,252,179,1)'
                        }, {
                            offset: 1,
                            color: 'rgba(83,252,179,0)'
                        }]),
                        opacity: 1,
                    }
                }
            }]
        };
        myChart.setOption(option);
    }
     // 国内目的地省份排行TOP10
     function myChart4_1() {
        let datas = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
        let cityData = ['河南', '山西', '河北', '山东', '陕西', '四川', '安徽', '湖南', '福建', '江苏']
        let cityDataBack = ['河南', '山西', '河北', '山东', '陕西', '四川', '安徽', '湖南', '福建', '江苏']
        var myChart = echarts.init(document.getElementById('lxs_4_1'));
        let myColor = ['#4B66C7', '#9A4CFB', '#E76D59', '#53FCB3', '#00E4FF']

        var sum = getsum(datas);

        function getsum(arr) {
            return arr.reduce(function (prev, curr, idx, arr) {
                return prev + curr;
            });
        }

        option = {
            grid: {
                top: '12%',
                right: '10%',
                left: '20%',
                bottom: '3%'
            },
            xAxis: {
                gridIndex: 0,
                show: false,
            },
            yAxis: {
                gridIndex: 0,
                splitLine: 'none',
                axisTick: 'none',
                axisLine: 'none',
                axisLabel: {
                    align: 'left',
                    padding: [0, 0, 0, -40],
                    textStyle: {
                        color: '#fff',
                        fontSize: '12px',
                        rich: {
                            a: {
                                fontSize: 12,
                                backgroundColor: '#E15D68',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',

                            },
                            b: {
                                fontSize: 12,
                                backgroundColor: '#FFAA25',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',
                            },
                            c: {
                                fontSize: 12,
                                backgroundColor: '#14C6CA',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',
                            },
                            d: {
                                fontSize: 12,
                                textAlign: 'center',
                                padding: [2, 4],
                                color: '#14C6CA',
                            }
                        }
                    },
                    formatter: function (params) {
                        var data = cityDataBack
                        for (var i = 0; i < 10; i++) {
                            if (data[i] == params) {
                                var j = i + 1
                                if (i == 0) {
                                    return '{a|' + j + '} ' + params
                                }
                                if (i == 1) {
                                    return '{b|' + j + '} ' + params

                                }
                                if (i == 2) {
                                    return '{c|' + j + '} ' + params
                                }
                                if (i > 2) {
                                    return '{d| ' + j + '}' + params
                                }
                            }

                        }
                    },
                },

                data: cityData.reverse()
            },
            series: {
                name: '值',
                type: 'bar',
                xAxisIndex: 0,
                yAxisIndex: 0,
                data: datas,
                label: {
                    normal: {
                        show: true,
                        position: ['30px', '3px'],
                        offset: [0, 0],
                        color: '#fff',
                        fontSize: '12px',
                        // formatter: function (item) {
                        //     return item.value + '人' + '\xa0\xa0 ' + (item.value / sum * 100).toFixed(2) + '%'
                        // }
                    }
                },
                barWidth: '15px',
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                            offset: 0,
                            color: 'rgba(0,228,255,0.1)'
                        }, {
                            offset: 1,
                            color: 'rgba(0,228,255,1)'
                        }]),
                        barBorderRadius: 0,
                    }
                },
                z: 2
            },

        };
        myChart.setOption(option);

    }
     // 出境游目的地国家TOP10
     function myChart4_2() {
        let datas = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
        let cityData = ['泰国', '日本', '韩国', '印度', '越南', '新加坡', '马来西亚', '美国', '法国', '意大利']
        let cityDataBack = ['泰国', '日本', '韩国', '印度', '越南', '新加坡', '马来西亚', '美国', '法国', '意大利']
        var myChart = echarts.init(document.getElementById('lxs_4_2'));
        let myColor = ['#4B66C7', '#9A4CFB', '#E76D59', '#53FCB3', '#00E4FF']

        var sum = getsum(datas);

        function getsum(arr) {
            return arr.reduce(function (prev, curr, idx, arr) {
                return prev + curr;
            });
        }

        option = {
            grid: {
                top: '12%',
                right: '10%',
                left: '25%',
                bottom: '3%'
            },
            xAxis: {
                gridIndex: 0,
                show: false,
            },
            yAxis: {
                gridIndex: 0,
                splitLine: 'none',
                axisTick: 'none',
                axisLine: 'none',
                axisLabel: {
                    align: 'left',
                    padding: [0, 0, 0, -70],
                    textStyle: {
                        color: '#fff',
                        fontSize: '12px',
                        rich: {
                            a: {
                                fontSize: 12,
                                backgroundColor: '#E15D68',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',

                            },
                            b: {
                                fontSize: 12,
                                backgroundColor: '#FFAA25',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',
                            },
                            c: {
                                fontSize: 12,
                                backgroundColor: '#14C6CA',
                                borderRadius: 10,
                                padding: [2, 5],
                                textAlign: 'center',
                                color: '#fff',
                            },
                            d: {
                                fontSize: 12,
                                textAlign: 'center',
                                padding: [2, 4],
                                color: '#14C6CA',
                            }
                        }
                    },
                    formatter: function (params) {
                        var data = cityDataBack
                        for (var i = 0; i < 10; i++) {
                            if (data[i] == params) {
                                var j = i + 1
                                if (i == 0) {
                                    return '{a|' + j + '} ' + params
                                }
                                if (i == 1) {
                                    return '{b|' + j + '} ' + params

                                }
                                if (i == 2) {
                                    return '{c|' + j + '} ' + params
                                }
                                if (i > 2) {
                                    return '{d| ' + j + '}' + params
                                }
                            }

                        }
                    },
                },

                data: cityData.reverse()
            },
            series: {
                name: '值',
                type: 'bar',
                xAxisIndex: 0,
                yAxisIndex: 0,
                data: datas,
                label: {
                    normal: {
                        show: true,
                        position: ['30px', '3px'],
                        offset: [0, 0],
                        color: '#fff',
                        fontSize: '12px',
                        // formatter: function (item) {
                        //     return item.value + '人' + '\xa0\xa0 ' + (item.value / sum * 100).toFixed(2) + '%'
                        // }
                    }
                },
                barWidth: '15px',
                itemStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                            offset: 0,
                            color: 'rgba(0,228,255,0.1)'
                        }, {
                            offset: 1,
                            color: 'rgba(0,228,255,1)'
                        }]),
                        barBorderRadius: 0,
                    }
                },
                z: 2
            },

        };
        myChart.setOption(option);

    }
    // 旅行社收入
    function myChart5() {
        var myChart = echarts.init(document.getElementById('lxs_5'));
        var fontColor = chartColor[0];
        let thisData= [0, 0, 0, 0, 0, 0, 0]
        // var lastData = [62253, 52878, 45145, 52486,51161, 53398, 66060]
        var legendData = ['今年预测','去年同期']
        option ={
            grid: {
                left: '5%',
                right: '10%',
                top:'20%',
                bottom: '15%',
                containLabel: true
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },

            legend: {
                show:false,
                right:'10%',
                top:'20',
                icon: 'stack',
                itemWidth:10,
                itemHeight:10,
                textStyle:{
                    color:'#fff'
                },
                data:legendData
            },
            xAxis : [
                {
                    type : 'category',
                    boundaryGap : false,
                    axisLabel:{
                        color: fontColor
                    },
                    axisLine:{
                        show:true,
                        lineStyle:{
                            color:'#397cbc'
                        }
                    },
                    axisTick:{
                        show:false,
                    },
                    splitLine:{
                        show:true,
                        lineStyle:{
                            color:'#195384'
                        }
                    },
                    data : ['7-14','7-15','7-16','7-17','7-18','7-19','7-20']
                }
            ],
            yAxis : {
                type : 'value',
                min:0,
                name:'(万元)',
                nameTextStyle:{
                    color:"#fff"
                },
                axisLabel : {
                    formatter: '{value}',
                    textStyle:{
                        color:'#2ad1d2'
                    }
                },
                axisLine:{
                    lineStyle:{
                        color:'#27b4c2'
                    }
                },
                axisTick:{
                    show:false,
                },
                splitLine:{
                    show:true,
                    lineStyle:{
                        color:'#11366e'
                    }
                }
            },
            series : [
                {
                    name:legendData[0],
                    type:'line',
                    symbol:'circle',
                    symbolSize: 8,
                    smooth: true,
                    itemStyle: {
                        normal: {
                            color:'#0092f6',
                            lineStyle: {
                                color: "#0092f6",
                                width:1
                            },
                            areaStyle: {
                                //color: '#94C9EC'
                                color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
                                    offset: 0,
                                    color: 'rgba(7,44,90,0.3)'
                                }, {
                                    offset: 1,
                                    color: 'rgba(0,146,246,0.9)'
                                }]),
                            }
                        }
                    },
                    markPoint:{
                        itemStyle:{
                            normal:{
                                color:'red'
                            }
                        }
                    },
                    data: thisData
                }
            ]
        };
        myChart.setOption(option);
    }
   
    //年龄分布
    function myChart6() {
        var myChart = echarts.init(document.getElementById('lxs_6'));
        let color = ['#4B66C7', '#9A4CFB', '#E76D59', '#53FCB3', '#00E4FF']
        let data = [{
                value: 0,
                name: '一日游'
            },
            {
                value: 0,
                name: '两日游'
            },
            {
                value: 0,
                name: '三日游'
            },
            {
                value: 0,
                name: '四日游'
            },
            {
                value: 0,
                name: '五日游'
            },
            {
                value: 0,
                name: '六日游'
            },
            {
                value: 0,
                name: '多日游'
            }
        ]
        option = {
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c} ({d}%)'
            },
            color: color,
            legend: {
                right: '1%',
                top: '10%',
                orient: 'vertical',
                itemWidth: 16,
                itemHeight: 8,
                // itemGap: 16,
                textStyle: {
                    color: '#fff',
                    fontSize: 12
                }
            },
            series: [{
                name: '',
                type: 'pie',
                radius: ['35%', '50%'],
                center: ['35%', '50%'],
                data,
                // roseType: 'radius',
                label: {
                    color: 'rgba(255, 255, 255, 1)',
                    fontSize: 12
                },
                labelLine: {
                    lineStyle: {
                        // color: '#fff'
                    },
                    smooth: 0.2,
                    length: 10,
                    length2: 10
                },


                animationType: 'scale',
                animationEasing: 'elasticOut',
                animationDelay: function (idx) {
                    return Math.random() * 200;
                }
            }]
        };

        myChart.setOption(option);
    }
    setTimeout(myChart1_1(), 1000);
    setTimeout(myChart1(), 1200);
    setTimeout(myChart2(), 1400);
    setTimeout(myChart3(), 1600);
    setTimeout(myChart4_1(), 1800);
    setTimeout(myChart4_2(), 1900);
    setTimeout(myChart5(), 2100);
    setTimeout(myChart6(), 2300);
   
})